package com.zjt.entity;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-29
 * Time: AM9:05
 * 版本管理，版本更新
 * To change this template use File | Settings | File Templates.
 */
@Entity
//表名与类名不相同时重新定义表名.
@Table(name="s_version_update")
//默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class VersionUpdate extends IdEntity{
    private String versionValue;
    private String versionPlatform;//平台 appple andorid windows phone
    private Integer deplyed;//1正在运行,0历史
    private String url;//更新url地址
    private String description;//版本说明

    private String versionString;//版本字符串描述

    public String getVersionString() {
        return versionString;
    }

    public void setVersionString(String versionString) {
        this.versionString = versionString;
    }

    public String getVersionValue() {
        return versionValue;
    }

    public void setVersionValue(String versionValue) {
        this.versionValue = versionValue;
    }

    public String getVersionPlatform() {
        return versionPlatform;
    }

    public void setVersionPlatform(String versionPlatform) {
        this.versionPlatform = versionPlatform;
    }

    public Integer getDeplyed() {
        return deplyed;
    }

    public void setDeplyed(Integer deplyed) {
        this.deplyed = deplyed;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "VersionUpdate{" +
                "versionValue='" + versionValue + '\'' +
                ", versionPlatform='" + versionPlatform + '\'' +
                ", deplyed=" + deplyed +
                ", url='" + url + '\'' +
                ", description='" + description + '\'' +
                ", versionString='" + versionString + '\'' +
                '}';
    }
}

